<?php
class Img extends Base{

    public static $timestamps   =   true;

    public static $table        =   'imgs';

    public static $accessible   =   array('url', 'product_id', 'collection_id');

    public function product() {
      return $this->belongs_to('Product');
    }


    public function collection() {
      return $this->belongs_to('Collection');
    }

    public function tags() {
      return $this->has_many_and_belongs_to('Tag', 'img_tag');
    }
}
